package com.xiaozhu.common.https;


import com.xiaozhu.library.http.retrofit.RetrofitUtils;

/**
 * @说明 Api工具
 * @作者 LY
 * @时间 2017-09-20 17:52
 * @邮箱 2743569843@qq.com
 * @版权 Copyright(c) 2017 XQJY-版权所有
 * @备注
 */
public class ApiUtils {
    private static WeatherApi weatherApi;

    /**
     * 用户接口
     *
     * @return
     */
    public static WeatherApi getWeatherApi() {
        if (weatherApi == null) {
            weatherApi = RetrofitUtils.get().retrofit("https://free-api.heweather.com/v5/").create(WeatherApi.class);
        }
        return weatherApi;
    }
}
